<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="../base.jsp" %>   
<sys:genericTag4o id="deptList" methodName="getDeptList" className="com.tmpt.controller.taglib.SecurityTag"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>商城网管理系统</title>
<link href="${path}/admin123/css/main.css" rel="stylesheet" type="text/css" >
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui/themes/icon.css">
<script src="${path}/js/jquery/easyui/jquery-1.8.0.min.js"></script>
<script src="${path}/js/jquery/easyui/jquery.easyui.min.js"></script>
<!-- rsa -->
<script type="text/javascript" src="${path}/js/rsa_js/RSA.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/BigInt.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/Barrett.js"></script>
<script type="text/javascript" src="${path}/js/rsa_js/myrsa.js"></script>
<script type="text/javascript">
$(function(){
	$('#win').window('open');
})
function submit1(){
      if(!$('#form1').form('validate')){
		alert('数据填写不完整');
		return;
	  }
      if($('#passwordR').val()!=$('#rsaPasswordId').val()){
          alert('两次输入密码不相同'); 
          return;
	  }
	  $('#passwordR').val('');
    
	  rsaPwd('rsaPasswordId');
	  document.form1.submit();
}
</script>
</head>
<body class="font14">
  <div style="text-align: center; color: red;">
  	<s:property value="#attr.result"/>
  </div>
  <div id="win" class="easyui-window" title="个人资料修改" style="width:450px;"> 
	   <s:form name="form1" id="form1" action="emp_editMyInfo.action" namespace="/admin123/user" cssStyle="padding:20px 0px 40px 60px;" theme="simple">
	      <table style="line-height: 35px; ">
	      	<tr>
	      		<td>用户名：</td>
	      		<td>
	      			${session.magSystemDtoSession.loginname}
	      		</td>
	      	</tr>
	      	<tr>
	      		<td>姓名：</td>
	      		<td><input type="text" name="name" value="${session.magSystemDtoSession.name}" class="easyui-validatebox" data-options="required:true" maxlength="20"></td>
	      	</tr>			
			<tr>
				<td>性别:</td>
				<td>
				<s:radio 
					name="sex" 
					theme="simple"
					list="#attr.sexList" 
					listKey="key"
					listValue="value"
					value="%{#session.magSystemDtoSession.sex}"/>
				</td>
			</tr>
			<tr>	
				<td>email:</td>
				<td><input type="text" name="email" value="${session.magSystemDtoSession.email}" class="easyui-validatebox" data-options="required:true,validType:'email'" maxlength="40"></td>
			</tr>
			<tr>	
				<td>电话:</td>
				<td><input type="text" value="${session.magSystemDtoSession.telephone}" name="telephone"  maxlength="40"></td>
			</tr>
	      	<tr>
	      		<td colspan="2" style="text-align: left;">
	      		&nbsp;
	      		</td>
	      	</tr>
	      	<tr>
	      		<td colspan="2" align="center">
			      <a href="#" class="easyui-linkbutton" icon="icon-edit" onclick="submit1();">
			      	提交
			      </a> 
	      		</td>
	      	</tr>
	      </table>
	   </s:form>
   </div>
  
</form>
</body>
</html>
